package zgs;
/**
 * 变长参数
 */
public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1);
        doSome(1,"one");
        doSome(1,"two");
        doSome(1,"two","three");
        doSome(1,"two","three","four");
        doSome(1,"two","three","four","five");
    }

    public static void doSome(int a,String...s){
        System.out.println(s.length);
    }


}
